package com.blx.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.blx.model.request.BackpackerRequest;
import com.blx.model.request.ConsultantMenuRequest;
import com.blx.model.response.BackpackerMenuResponse;
import com.blx.model.response.ConsultantMenuResponse;
import com.blx.service.MenuService;

@Controller
@RequestMapping("menu")
public class MenuController {

	@Autowired
	private MenuService menuService;
	/**
	 * 
	* @Description: 获取咨询师主页menu
	 */
	@ResponseBody
	@RequestMapping("conMenu")
	public ConsultantMenuResponse getConsultantMenu(ConsultantMenuRequest request){
		
		ConsultantMenuResponse response = menuService.getConsultantMenu(request);
		return response;
	}
	/**
	 * 
	* @Description: TODO 获取背包客主页menu
	 */
	@ResponseBody
	@RequestMapping("backMenu")
	public BackpackerMenuResponse getBackPackerMenu(BackpackerRequest request){
		
		BackpackerMenuResponse response = menuService.getBackpackerMenu(request);
		return response;
	}
	
	
}
